package ioTest;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import io.CourseInput;
import junit.framework.*;

public class Test_CourseInput extends TestCase {
	public void setUp() throws FileNotFoundException {
		CourseInput.courseInput = new FileInputStream("CourseInputTest.txt");
		CourseInput.cip = new CourseInputProcessor_stub();
	}
	
	public void test() {
		CourseInput.courseDataFromFile();
		assertNotNull(CourseInput.courseInput);
		assertNotNull(CourseInput.cip);
		assertNull(CourseInput.cInput);
	}
	
	public void tearDown() {
		CourseInput.courseInput = null;
		CourseInput.cip = null;
	}
}
